home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / net / RCS / af.h,v < prev    next >
Encoding:
Text File  |  1988-06-29  |  1.5 KB  |  85 lines

  1. head     1.2;
  2. access   ;
  3. symbols  ;
  4. locks    ; strict;
  5. comment  @ * @;
  6.  
  7.  
  8. 1.2
  9. date     88.06.29.15.14.15;  author ouster;  state Exp;
  10. branches ;
  11. next     1.1;
  12.  
  13. 1.1
  14. date     88.06.21.16.56.33;  author ouster;  state Exp;
  15. branches ;
  16. next     ;
  17.  
  18.  
  19. desc
  20. @@
  21.  
  22.  
  23. 1.2
  24. log
  25. @Add ifdefs so files won't be processed twice.
  26. @
  27. text
  28. @/*
  29.  * Copyright (c) 1980, 1986 Regents of the University of California.
  30.  * All rights reserved.
  31.  *
  32.  * Redistribution and use in source and binary forms are permitted
  33.  * provided that this notice is preserved and that due credit is given
  34.  * to the University of California at Berkeley. The name of the University
  35.  * may not be used to endorse or promote products derived from this
  36.  * software without specific prior written permission. This software
  37.  * is provided ``as is'' without express or implied warranty.
  38.  *
  39.  *    @@(#)af.h    7.2 (Berkeley) 12/30/87
  40.  */
  41.  
  42. #ifndef _AF
  43. #define _AF
  44.  
  45. /*
  46.  * Address family routines,
  47.  * used in handling generic sockaddr structures.
  48.  *
  49.  * Hash routine is called
  50.  *    af_hash(addr, h);
  51.  *    struct sockaddr *addr; struct afhash *h;
  52.  * producing an afhash structure for addr.
  53.  *
  54.  * Netmatch routine is called
  55.  *    af_netmatch(addr1, addr2);
  56.  * where addr1 and addr2 are sockaddr *.  Returns 1 if network
  57.  * values match, 0 otherwise.
  58.  */
  59. struct afswitch {
  60.     int    (*af_hash)();
  61.     int    (*af_netmatch)();
  62. };
  63.  
  64. struct afhash {
  65.     u_int    afh_hosthash;
  66.     u_int    afh_nethash;
  67. };
  68.  
  69. #ifdef KERNEL
  70. struct    afswitch afswitch[];
  71. #endif
  72.  
  73. #endif _AF
  74. @
  75.  
  76.  
  77. 1.1
  78. log
  79. @Initial revision
  80. @
  81. text
  82. @d15 3
  83. d45 2
  84. @
  85.